package com.ysd.servlet;

import java.io.IOException;

import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.dao.impl.BannerDao;
import com.ysd.entity.Banner;




@WebServlet("/HeaderServlet")
public class HeaderServlet extends HttpServlet {
	
	
	protected void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		List<Banner> ls=BannerDao.getAll();
		request.setAttribute("Banner", ls);
		request.getRequestDispatcher("header.jsp").include(request, response);
	}

}
